package cn.funnymap.lgis.response.exception.common;

import cn.funnymap.lgis.response.exception.AbstractException;
import cn.funnymap.lgis.response.status.code.IStatusCode;
import cn.funnymap.lgis.response.status.code.ValidationExceptionStatusCodeEnum;

/**
 * 通用-参数校验异常类
 *
 * @author jiaoxn
 */
public class ParamValidationException extends AbstractException {
    public ParamValidationException(IStatusCode exceptionEnum, String message) {
        super(exceptionEnum, message);
    }

    public ParamValidationException(IStatusCode exceptionEnum) {
        super(exceptionEnum);
    }

    public ParamValidationException(String message) {
        super(ValidationExceptionStatusCodeEnum.ERR_INVALID_REQUEST_PARAMS, message);
    }
}
